#include <sys/socket.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>

int main(int argc, char**argv) {
	char *str = argv[0];
	if(argc == 2) {
		str = argv[1];
	}
	char buff[strlen(str) + 100];
	sprintf(buff, "SHOULD NOT BE LOGGED %s", str);
	int fd = open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC, 0666);
	if(fd) {
		// this does not work... translates into the send()
		// call so it would get interposed if we did not
		// keeo track of connect() calls
		send(fd, buff, strlen(buff), (int)NULL);
		close(fd);
	} else {
		return 1;	
	}
	return 0;
}
